package cn.stylefeng.guns.modular.transport.entity;

import java.io.Serializable;
import java.util.Date;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import lombok.Data;

/**
 * 调度单表
 */
@TableName("transport_dispatch")
@Data
public class TransportDispatch implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 收入匹配状态
     */
    @TableField("income_state")
    private String incomeState;

    /**
     * 调度单号
     */
    @TableField("dispatch_number")
    private String dispatchNumber;
    
    /**
     * 客户单号
     */
    @TableField("customer_order")
    private String customerOrder;

    /**
     * 托运订单号
     */
    @TableField("transport_number")
    private String transportNumber;

    /**
     * 车辆id
     */
    @TableField("car_id")
    private Long carId;

    /**
     * 车牌号
     */
    @TableField("carnumbger")
    private String carnumbger;
    
    /**
     * 司机电话
     */
    @TableField("cartel")
    private String cartel;

    /**
     * 司机姓名
     */
    @TableField("driver1")
    private String driver1;

    /**
     * 商品体积
     */
    @TableField("goods_volume")
    private String goodsVolume;

    /**
     * 体积
     */
    @TableField("tooDeployVolume")
    private String tooDeployVolume;

    /**
     * 基本单位
     */
    @TableField("jiben_unit")
    private String jibenUnit;

    /**
     * 基本数量
     */
    @TableField("jiben_num")
    private String jibenNum;

    /**
     * 数量
     */
    @TableField("tooDeployNum")
    private String tooDeployNum;

    /**
     * 换算
     */
    @TableField("matrixing_number")
    private String matrixingNumber;

    /**
     * 单价
     */
    @TableField("unitprice")
    private String unitprice;

    /**
     * 金额
     */
    @TableField("transport_money")
    private String transportMoney;

    /**
     * 批次
     */
    @TableField("batchnumber")
    private String batchnumber;

    /**
     * 生产日期
     */
    @TableField("detailed_date")
    private String detailedDate;

    /**
     * 到期日期
     */
    @TableField("daoqi_date")
    private String daoqiDate;

    /**
     * 新零帮库位id
     */
    @TableField("xlb_position_id")
    private String xlbPositionId;

    /**
     * 库位id
     */
    @TableField("position_id")
    private Long positionId;

    /**
     * 库位编号
     */
    @TableField("position_number")
    private String positionNumber;

    /**
     * 新零帮商品id
     */
    @TableField("xlb_goods_id")
    private String xlbGoodsId;

    /**
     * 商品id
     */
    @TableField("goods_id")
    private Long goodsId;

    /**
     * 商品名称
     */
    @TableField("goods_name")
    private String goodsName;

    /**
     * 商品编号
     */
    @TableField("goods_number")
    private String goodsNumber;

    /**
     * 商品码
     */
    @TableField("goods_pcode69")
    private String goodsPcode69;

    /**
     * 货号
     */
    @TableField("goods_no")
    private String goodsNo;

    /**
     * 包装
     */
    @TableField("goods_packing")
    private String goodsPacking;

    /**
     * 单位
     */
    @TableField("goods_unit")
    private String goodsUnit;

    /**
     * 换算率
     */
    @TableField("rate")
    private String rate;

    /**
     * 规格
     */
    @TableField("goods_specs")
    private String goodsSpecs;

    /**
     * 创建用户
     */
    @TableField("create_user_name")
    private String createUserName;

    /**
     * 制单时间
     */
    @TableField(value = "create_time", fill = FieldFill.INSERT)
    private Date createTime;

    /**
     * 制单用户
     */
    @TableField(value = "create_user", fill = FieldFill.INSERT)
    private Long createUser;

    /**
     * 交付id
     */
    @TableField("deliver_id")
    private Long deliverId;

    /**
     * 部门id
     */
    @TableField("dept_id")
    private Long deptId;

	@Override
    public String toString() {
        return "TransportDispatch{" +
        "id=" + id +
        ", dispatchNumber=" + dispatchNumber +
        ", transportNumber=" + transportNumber +
        ", carnumbger=" + carnumbger +
        ", tooDeployVolume=" + tooDeployVolume +
        ", tooDeployNum=" + tooDeployNum +
        ", goodsId=" + goodsId +
        ", goodsName=" + goodsName +
        ", deliverId=" + deliverId +
        ", deptId=" + deptId +
        ", createTime=" + createTime +
        ", createUser=" + createUser +
        "}";
    }
}
